proc println(f:File, values:varargs[string]) =
  for v in values.items:
    write(f, v)
  write(f, "\n")

proc printlnstr(f:File, values:varargs[string, `$`]) =
  for v in items(values):
    write(f, v)
  write(f, "\n")

proc m100(input:int):int = input*100
proc printnums(f:File, values:varargs[int, m100]) =
  for v in values:
    write(f, v)
    write(f, ", ")
  write(f, "\n")

println stdout, ["aaa", "bbb", "ccc"]
printlnstr stdout, 100, "haha", 200
printnums stdout, 3, 4, 5, 6
printnums stdout, [3, 4, 5, 6]
printnums stdout, @[3, 4, 5, 6]
